package com.glsc.ngateway.common.base.domain.mysql.opmanage.report.excel;

import java.io.Serializable;
import java.util.Date;

public class GltbSubFundListId implements Serializable {
    private static final long serialVersionUID = 1L;
    private String masterFundname;
    private String subFundname;
    private Date date;

    public GltbSubFundListId(){
        super();
    }

    public GltbSubFundListId(String masterFundname, String subFundname, Date date){
        super();
        this.masterFundname=masterFundname;
        this.subFundname=subFundname;
        this.date=date;
    }

    public void setMasterFundname(String masterFundname) {
        this.masterFundname = masterFundname;
    }

    public String getMasterFundname() {
        return masterFundname;
    }

    public void setSubFundname(String subFundname) {
        this.subFundname = subFundname;
    }

    public String getSubFundname() {
        return subFundname;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Date getDate() {
        return date;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((masterFundname == null) ? 0 : masterFundname.hashCode());
        result = prime * result + ((subFundname == null) ? 0 : subFundname.hashCode());
        result = prime * result + ((date == null) ? 0 : date.hashCode());
        return result;
    }
    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        GltbSubFundListId other = (GltbSubFundListId) obj;
        if (masterFundname == null) {
            if (other.masterFundname != null)
                return false;
        } else if (!masterFundname.equals(other.masterFundname))
            return false;
        if (subFundname == null) {
            if (other.subFundname != null)
                return false;
        } else if (!subFundname.equals(other.subFundname))
            return false;
        if (date == null) {
            if (other.date != null)
                return false;
        } else if (!date.equals(other.date))
            return false;
        return true;
    }
}
